//
//  UILabel+Extension.swift
//  weibo
//
//  Created by 杨念川 on 16/8/30.
//  Copyright © 2016年 杨念川. All rights reserved.
//

import UIKit
extension UILabel {
    
    convenience init(textColor: UIColor, fontSize: CGFloat) {
        self.init()
        self.textColor = textColor
        self.font = UIFont.systemFont(ofSize: fontSize)
    }
}

extension UIButton {
    
    convenience init(textColor: UIColor, fontSize: CGFloat) {
        self.init()
        self.setTitleColor(textColor, for: UIControlState.normal)
        self.titleLabel?.font = UIFont.systemFont(ofSize: fontSize)
    }
}
